package com.leyou.lyelasticsearch.client;

import com.leyou.item.api.GoodsApi;
import org.springframework.cloud.openfeign.FeignClient;

@FeignClient(value = "ly-item-service",contextId = "goods")
public interface GoodsClient extends GoodsApi {
/*
*//*分页查询商品*//*
    @GetMapping("spu/page")
    ResponseEntity<MyPage<TbSpuBo>> querySpuByKey(
            String key,
            @RequestParam(defaultValue = "1")int page,
            @RequestParam(defaultValue = "5")int rows,
            Boolean saleable
    );

    *//*根据spu的id查询详情*//*
    @GetMapping("spu/detail/{id}")
    ResponseEntity<TbSpuDetail> querySpuDetailById(@PathVariable("id") Long id);


    *//*根据spu的id查询sku*//*
    @GetMapping("sku/list")
    ResponseEntity<List<TbSku>> querySkusBySpuId(Long id);

  */
}